<?php
declare (strict_types = 1);

namespace app\validate;

use think\Validate;

class ResourceValidate extends Validate
{
    protected $rule = [
        'description' => 'max:255',
    ];

    protected $message = [
        'description.max' => '描述不能超过 255 个字符',
    ];

    protected $scene = [
        'upload' => ['description'],
    ];
}
